package com.api.shopapi.service;


import com.api.shopapi.entity.UserAddress;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserAddressService {

    List<UserAddress> getList();

    void  insert(UserAddress userAddress);

    PageInfo<UserAddress> getPageInfo(int pageIndex,int pageSize);

    UserAddress getByUserAddressCode(String userAddressCode);

    void update(UserAddress userAddress);


    List<UserAddress> getMyAddressList(String userCode);

    int delete(String userAddressCode);

    int addressSetDefault0(String userCode);

    int addressSetDefault1(String userAddressCode);

}
